"use strict";
cc._RF.push(module, 'cfe562wC/lCJpVb+uh+GYnB', 'recharge_pop');
// scripts/mainScene/recharge_pop.js

"use strict";

// Learn cc.Class:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/class/index.html
// Learn Attribute:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/reference/attributes/index.html
// Learn life-cycle callbacks:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/life-cycle-callbacks/index.html

/**
 * 充值(支付宝支付)界面
 */

cc.Class({
    extends: cc.Component,

    properties: {
        webview: cc.WebView,
        _url: ''
    },

    // LIFE-CYCLE CALLBACKS:
    init: function init(url) {
        this._url = url;
    },

    start: function start() {
        this.webview.url = this._url;
    },

    //关闭界面
    onClose: function onClose() {
        window.Notification.emit("moneyShow", null);
        this.node.getComponent("Page").backAndRemove();
    }

    // update (dt) {},
});

cc._RF.pop();